package net.cn_su.sharpeyes.utils.http;

/**
 * Http的地址
 *
 * @author 谌毅
 */
public class HttpUrl {




    //移动地址http://192.168.199.251:3000
    //	public static final String ROOT = "http://cgt.tavern.name/";
    public static String ROOT = "http://111.9.123.140:88/api/";
    public static final String UPDATE_ROOT = "http://sharp-eyes.cn-su.net";




    public static void setROOT(String ROOT) {
        HttpUrl.ROOT = ROOT;
    }

    /**
     * 自动更新地址
     */
    public static final String UPDATE = UPDATE_ROOT + "/api/app_versions";
    /**
     * 用户登录地址，返回视频服务器信息和组织机构列表
     */
    public static final String LOGIN = ROOT + "users/sign_in";
    /**
     * 加载摄像头列表
     */
    public static final String LOAD_CAMERAS = ROOT + "cameras";
    /**
     * 加载文章列表
     */
    public static final String ARTICLES = ROOT + "articles";
    /**
     * 报警，返回报警记录编号
     */
    public static final String CALL_POLICE = ROOT + "danger_calls";
    /**
     * 错误日志记录上传
     */
    public static final String APP_DEBUG_CALL = ROOT + "danger_calls/app_debug_call";

    /**
     * 根据报警记录编号上传报警截图
     */
    public static final String UPLOAD_CALL_CAPTURE_PICTURE = ROOT + "danger_calls/attachment";
    /**
     * 注册
     */
    public static final String CREATE_USER = ROOT + "users/create_user";
    /**
     * 提交加入申请
     */
    public static final String GENERAL_PUBLICS = ROOT + "general_publics";

    /**
     * 获取申请结构列表
     */
    public static final String GET_ORG_APPLY = ROOT + "general_publics/get_org_apply";
    /**
     *摄像头报修
    */
    public static final String REPAIRS_CAMERA = ROOT+ "cameras";
    /**
     * 得到服务时间
     */
    public static final String GET_SERVICE_TIME = ROOT + "danger_calls/get_service_time";
    /**
     * 修改密码
     */
    public static final String APP_RESET_PSW = ROOT + "users/app_reset_psw";
    /**
     * 添加评价
     */
    public static final String PUSH_RATED = ROOT + "danger_call_rateds/push_rated";
}
